package com.yl.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author ln
 * @since 2023-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 权限表
     */
      @TableId(value = "id", type = IdType.AUTO)
    private String id;

    private String name;

    private String pid;

    private String miaoshu;

    private String icon;

    private String url;

    @TableField(exist = false)
    private List<Permission> children;
}
